﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using CSF.BusinessCore.Data;

namespace CSF.Products.Data
{
    public enum UnitType
    {
        /// <summary>
        /// 个数
        /// </summary>
        Number = 0,
        /// <summary>
        /// 长度
        /// </summary>
        Length = 1,
        /// <summary>
        /// 面积
        /// </summary>
        Area = 2,
        /// <summary>
        /// 体积
        /// </summary>
        Volume = 3,
        /// <summary>
        /// 重量
        /// </summary>
        Weight = 4,
    }

    /// <summary>
    /// Author: Robin
    /// Create Date: 2011-9-9
    /// 测量单位
    /// </summary>
    public class Unit : DataConfig
    {
        /// <summary>
        /// 单位类型
        /// </summary>
        public UnitType UnitType { get; set; }

        /// <summary>
        /// 单位精度，即保留几位小数
        /// </summary>
        public short Accuracy { get; set; }
    }
}
